#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "cipherselect.h"
#include "textselect.h"
#include "sizeselect.h"
#include "resultoutput.h"
//#include "dfa_widget.h"
//#include "afa_widget.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
/*    maintabwidget = new QTabWidget();
    dfa = new DFA_Widget;
    afa = new AFA_Widget;
    maintabwidget->addTab(dfa, tr("DFA"));
    maintabwidget->addTab(afa, tr("AFA"));*/
    cipher = new CipherSelect;
    text = new TextSelect;
    size = new SizeSelect;
    result = new ResultOutput;
    mainsplitter = new QSplitter(Qt::Horizontal);
    rightsplitter1 = new QSplitter(Qt::Vertical);
//    rightsplitter2 = new QSplitter(Qt::Vertical);
    rightsplitter1->addWidget(text);
    rightsplitter1->addWidget(size);
    rightsplitter1->addWidget(result);
//    rightsplitter2->addWidget(result);
    mainsplitter->addWidget(cipher);
    mainsplitter->addWidget(rightsplitter1);
    setCentralWidget(mainsplitter);
}

MainWindow::~MainWindow()
{
    delete ui;
}
